#include <gui/screen5_screen/Screen5View.hpp>
extern "C"
{
#include "user_include.h"
}

Screen5View::Screen5View()
{
}

void Screen5View::setupScreen()
{
    Screen5ViewBase::setupScreen();
}

void Screen5View::tearDownScreen()
{
    Screen5ViewBase::tearDownScreen();
}
void Screen5View::handleTickEvent(void)
{
    static int8_t tick = 0;
    static uint16_t para[4] = {1, 23, 34, 23};
    uint8_t i = 0;
    struct tm t;
    tick++;
    if (tick % 6 == 0)
    {
        tick = 0;
        if (driver_button_struct.key_value == BUTTON2_PRESS_FLAG)
        {
            driver_button_struct.key_value = 0;
            application().gotoscreen2ScreenSlideTransitionEast();
        }
        dynamicGraphO2.addDataPoint(driver_adc_struct.table[0]);
        dynamicGraphHs.addDataPoint(driver_adc_struct.table[1]);
        dynamicGraphCo.addDataPoint(driver_adc_struct.table[2]);
        dynamicGraphLel.addDataPoint(driver_adc_struct.table[3]);
    }
}